#pragma once
#include<functional>
using namespace std;
class Task {
	using Func = std::function<void()>;
	Func func;
public:
	Task() {

	}
	Task(Func& func):func(func){}
	void operator()() {
		if(func)
			func();
	}
};
